#ifndef SYMBOL_H
#define SYMBOL_H

#include <string>
#include <vector>
#include <QColor>

namespace qrcode{

static const char ERROR_CORRECTION_LEVEL_L = 'L';
static const char ERROR_CORRECTION_LEVEL_M = 'M';
static const char ERROR_CORRECTION_LEVEL_Q = 'Q';
static const char ERROR_CORRECTION_LEVEL_H = 'H';

static const std::string MODEL_INDICATOR_ECI = "0111";
static const std::string MODEL_INDICATOR_NUM  = "0001";
static const std::string MODEL_INDICATOR_AN = "0010";
static const std::string MODEL_INDICATOR_BYTE = "0100";
static const std::string MODEL_INDICATOR_HZ = "1101";
static const std::string MODEL_INDICATOR_Kanji = "1000";
static const std::string MODEL_INDICATOR_SA = "0011";

static const std::string TERM = "0000";

typedef std::vector<char> codeword;   //码字数据
typedef std::vector<codeword> block;  //块数据（bits）
typedef std::vector<int> block_int;   //块数据（int）
typedef std::vector<block> group;     //组数据

//颜色
static const QColor value_b(0, 0, 0);        //黑色
static const QColor value_w(255, 255, 255);  //白色
static const QColor value_y(Qt::yellow);     //黄色

}

#endif // SYMBOL_H
